import random

group_list = [1,2,3,4,5,6]

for group in range(6):
    id = random.choice(group_list)

    index_id = group_list.index(id)

    print(group_list.pop(index_id))


'''

6
1
2
5
4
3

'''